package com.coocaa.ops.admin.v1.globalparams.model;

import com.coocaa.ops.common.core.biz.globalparams.entity.GlobalParamsEntity;
import lombok.Data;

import java.util.List;

/**
 * @author : hql
 * @date : 2020/7/20 18:56
 * @description
 */
@Data
public class GlobalParamsPageListModel {

    private Integer id;

    /**
     * dict_info表id，dict_category为globalParams
     */
    private Integer type;

    private String name;

    private String remark;

    private String comment;

    /**
     * 开关状态
     */
    private Integer flag;

    private List<ParamsInfoModel> paramsInfo;

    private String dmpPolicyName;

    private Integer dmpPolicyId;

    public GlobalParamsPageListModel(GlobalParamsEntity entity) {
        if (entity == null) {
            return;
        }
        this.id = entity.getId();
         this.type = entity.getType();
        this.name = entity.getName();
        this.remark = entity.getRemark();
        this.comment = entity.getComment();
        this.flag = entity.getSwitchStatus();
    }

}
